/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.project.entity.dynamic;

import com.jeeplus.modules.project.entity.ProjectInfo;
import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 项目动态Entity
 * @author 卢经纬
 * @version 2019-04-10
 */
public class ProjectDynamic extends DataEntity<ProjectDynamic> {
	
	private static final long serialVersionUID = 1L;
	private ProjectInfo projectInfo;		// 项目名称
	private Integer stage;		// 阶段
	private String content;		// 内容
	
	public ProjectDynamic() {
		super();
	}

	public ProjectDynamic(String id){
		super(id);
	}

	@NotNull(message="项目名称不能为空")
	@ExcelField(title="项目名称", fieldType=ProjectInfo.class, value="projectInfo.projectName", align=2, sort=1)
	public ProjectInfo getProjectInfo() {
		return projectInfo;
	}

	public void setProjectInfo(ProjectInfo projectInfo) {
		this.projectInfo = projectInfo;
	}
	
	@NotNull(message="阶段不能为空")
	@ExcelField(title="阶段", dictType="stage", align=2, sort=2)
	public Integer getStage() {
		return stage;
	}

	public void setStage(Integer stage) {
		this.stage = stage;
	}
	
	@ExcelField(title="内容", align=2, sort=3)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}